import http from './index'

/**
 * 查询实名申请
 */
export function queryAuthApply(params) {
  return http.get('api/v1/userAuthApply/query?' + Form(params).queryString())
}

/**
 * 通过实名申请
 */
export function approveAuthApply(rowId) {
  return http.post('api/v1/userAuthApply/approve?rowId=' + rowId)
}

/**
 * 查询实名申请详情
 */
export function selectAuthApplyById(rowId) {
  return http.get('api/v1/userAuthApply/selectApplyById?rowId=' + rowId)
}

/**
 * 驳回实名申请
 */
export function rejectAuthApply(params) {
  return http.post(`api/v1/userAuthApply/reject`, Form(params))
}

/**
 * 查询住户申请
 */
export function queryRoomApply(params) {
  return http.get('api/v1/userHouseApply/query?' + Form(params).queryString())
}

/**
 * 通过住户申请
 */
export function approveRoomApply(rowId) {
  return http.post('api/v1/userHouseApply/approve?rowId=' + rowId)
}

/**
 * 驳回住户申请
 */
export function rejectRoomApply(params) {
  return http.post(`api/v1/userHouseApply/reject`, Form(params))
}

/**
 * 查询房屋申请详情
 */
export function selectHouseApplyById(rowId) {
  return http.get('api/v1/userHouseApply/selectHouseApplyById?rowId=' + rowId)
}
